<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i class="icon-home"></i> 首页</a> 
			<a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<button class="btn btn-info" id="add_goods_category" >新增</button>
		<button class="confirm btn btn-danger ajax-post" url="{:U('Shop/changeShopGoodsCategory?method=delete')}" target-form="ids">删除</button>
		<div class="search-form fr cf row-fluid" style="width:800px;">
			<span class=" pull-right">
				<input type="text" name="search_text" class="search-input" value="{:htmlspecialchars(I('search_text'))}" placeholder="请输入商品品类" style="margin-bottom:0;"><button class="btn btn-info" id="search_button" url="{:U('Shop/goodsCategory')}"><i class="icon-search icon-white"></i></button>
			</span>
			
		</div>
		
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<notempty name="_list">
							<form id="export-form" method="post" action="" autocomplete="off">
								<table class="table table-bordered table-striped with-check">
									<thead>
										<tr>
											<th><input type="checkbox" /></th>
											<th nowrap="nowrap">序号</th>
											<th>商户</th>
											<th>店铺</th>
											<th>品类</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<volist name="_list" id="vo">
											<tr>
												<td class="taskStatus"><input type="checkbox" value="{$vo.goods_category_id}" name="id[]" class="ids"/></td>
												<td class="taskStatus">{$i}</td>
												<td class="taskStatus">{$vo.merchant_id|getmerchantname|htmlspecialchars}</td>
												<td class="taskStatus">{$vo.shop_name|htmlspecialchars}</td>
												<td class="taskStatus">{$vo.merchant_name|htmlspecialchars}</td>
												<td class="taskStatus">
													<a href="{:U('Shop/editShopGoodsCategory?merchant_id='.$vo['merchant_id'])}"><i class="icon-edit"></i> 编辑</a>
													<a href="{:U('Shop/changeShopGoodsCategory',array('id'=>$vo['merchant_id'],'method'=>'delete'))}" class="ajax-get confirm"><i class="icon-remove"></i> 删除</a>
												</td>
											</tr>
										</volist>
									</tbody>
								</table>
								<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
									{$_page}
								</div>
							</form>
					<else/>
						<center>暂无内容</center>
					</notempty>
					
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	
$(function (){
	
	//新增商品品类跳转页面
	$('#add_goods_category').click(function(){
		window.location.href="{:U('Shop/addShopGoodsCategory')}";
	});
});
//导航高亮
highlight_subnav("{:U('Shop/shopGoodsCategory')}");
</script>
</block>